package com.bonc.situation.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.bonc.situation.service.TestHbaseService;
import com.bonc.situation.vo.TestHBaseBean;


@RestController
@RequestMapping("")
public class SituationController {
	@Autowired
	private TestHbaseService service;
	@RequestMapping(value="/getList",method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_VALUE)
	@ResponseBody
	public List<TestHBaseBean> getList(@PathVariable("id") String id)throws Exception{
		return service.getList();
	}
}
